Purpose

These relations are predicates used for comparing numbers.

Syntax

< number1 number2
<= number1 number2
= number1 number2
>= number1 number2
> number1 number2
<> number1 number2

Domain

The number1 argument is the integer or real number that is to be compared with number2.

Range

The number2 argument is an integer or real number.

Examples

(tellm (:about Fred Man (age 65) (wife Mary)) (age Mary 66)) 
(ask (>= (age Fred) 65)) ==> T 
(retrieve ?x (:and (Man ?x) (< (age ?x) (age (wife ?x))))) ==> (|I|FRED)

See Also

Last modified: Jun 1 1995